package cn.bugio.task04;

/**
 * <h1></h1>
 *
 * @version 1.0
 * @author: Vincent Vic
 * @since: 2021/09/29
 */
public class Task04Test {

    public static void main(String[] args) {
        MaleFactory maleFactory = new MaleFactory();
        Human yellowHuman = maleFactory.createYellowHuman();
        yellowHuman.getSex();
        yellowHuman.getColor();

        Human whiteHuman = maleFactory.createWhiteHuman();
        whiteHuman.getSex();
        whiteHuman.getColor();

        Human blackHuman = maleFactory.createBlackHuman();
        blackHuman.getSex();
        blackHuman.getColor();

        FemaleFactory femaleFactory = new FemaleFactory();
        Human yellowFemale = femaleFactory.createYellowHuman();
        yellowFemale.getSex();
        yellowFemale.getColor();

        Human whiteFemale = femaleFactory.createWhiteHuman();
        whiteFemale.getSex();
        whiteFemale.getColor();

        Human blackFemale = femaleFactory.createBlackHuman();
        blackFemale.getSex();
        blackFemale.getColor();
    }
}
